import request from '@/utils/request'

export const getListAll = (sortType, goodsName, page) => {
  return request({
    url: '/goods/list',
    method: 'get',
    params: {
      sortType,
      goodsName,
      page

    }
  })
}

export const getCategory = (sortType, page, categoryId) => {
  return request({
    url: '/goods/list',
    method: 'get',
    params: {
      sortType,
      page,
      categoryId
    }
  })
}
